import { get, post, put } from "./http.js";
import { baseUrl2 } from "./baseUrl";

// 字典
export const dictionary = (param) => get(baseUrl2, "/sys/dict/getDictTexts", param);
// 首页数据1
export const HomeList = (param) => get(baseUrl2, "/home/zdHomeChart/list", param);
// 首页数据2
export const HomeEchart = (param) => get(baseUrl2, "/home/zdHomeChartGraph/list", param);
// 首页排名
export const HomeRanking = (param) => get(baseUrl2, "/examine/zdExamineScoreSummary/getUserScoreRank", param);

// 待办征地拆迁列表
export const zdcqList = (param) => get(baseUrl2, "/undoTask/task/queryLandRemoveList", param);
// 首页征地拆迁列表
export const homeZdcqList = (param) => get(baseUrl2, "/relocate/zdProRelocate/list", param);

// 乡镇角色征地拆迁列表
export const xzZdcqList = (param) => get(baseUrl2, "/undoTask/task/queryLandRemoveListInTown", param);

// 管理员征地拆迁审核通过
export const zdcqAgree = (param) => get(baseUrl2, "/undoTask/task/doLandRemovePass", param);
// 管理员征地拆迁审核不通过
export const zdcqNoAgree = (param) => get(baseUrl2, "/undoTask/task/doLandRemoveNoPass", param);
// 角色2 or 4 填报进展 获取详情
export const zdcqDetails = (param) => get(baseUrl2, "/process/zdProcessDetail/queryPlanByRelocateCode", param);
// 角色2 or 4 填报进展 提交
export const zdcqSubmit = (param) => post(baseUrl2, "/process/zdProcessDetail/add", param);
// 项目进展列表
export const xmjzList = (param) => get(baseUrl2, "/undoTask/task/queryItemList", param);
// 责任单位角色项目进展列表
export const zrdwXmjzList = (param) => get(baseUrl2, "/undoTask/task/queryItemProcessInResDept", param);
// 管理员项目进展审核通过
export const xmjzAgree = (param) => get(baseUrl2, "/undoTask/task/doItemPass", param);
// 管理员项目进展审核不通过
export const xmjzNoAgree = (param) => get(baseUrl2, "/undoTask/task/doItemNoPass", param);
// 项目进展进展填报详情
export const xmjzJztbDetail= (param) => get(baseUrl2, "/process/zdProcessDetail/queryPlanInvByItemCode", param);
// 项目进展进展填报提交
export const xmjzJztbSubmit = (param) => post(baseUrl2, "/process/zdProcessDetail/add", param);
// 项目进展进展填报建设已完成
export const xmjzJztbComplete = (param) => post(baseUrl2, "/process/zdProcessDetail/addToExam", param);
// 项目进展进展填报历史记录
export const xmjzJztbRecord = (param) => get(baseUrl2, "/process/zdProcessSub/queryDetailById", param);


// 提请协调列表
export const tqxtList = (param) => get(baseUrl2, "/undoTask/task/queryProcessQuestionList", param);
// 提请协调 补充数据
export const tqxtDetail = (param) => get(baseUrl2, "/supervision/zdOverseeQuestion/queryById", param);
// 提请协调 审核通过/撤销/办结
export const tqxtOperation = (param) => put(baseUrl2, "/supervision/zdOverseeQuestion/dealWithProblem", param);

// 督查任务列表
export const dcrwList = (param) => get(baseUrl2, "/supervision/zdSupervisionTask/list", param);
// 督察任务详情
export const dcrwDetail = (param) => get(baseUrl2, "/supervision/zdSupervisionTask/showRecords", param);
// 督查撤销
export const dcrwRevoke = (param) => get(baseUrl2, "/supervision/zdSupervisionTask/revokeTask", param);

// 督查反馈
export const dcrwFk = (param) => post(baseUrl2, "/supervision/zdSupervisionFeedback/add", param);
// 督查组角色督查反馈
export const dczDcrwFk = (param) => post(baseUrl2, "/supervision/zdSupervisionUrge/add", param);

// 项目流程列表
export const xmlcList = (param) => get(baseUrl2, "/undoTask/task/queryItemProcessList", param);
// 项目流程完成
export const xmlcComplete = (param) => get(baseUrl2, "/process/zdProcessSubDetail/processOperation", param);
// 项目流程提请协调
export const xmlcTqxt = (param) => post(baseUrl2, "/supervision/zdOverseeQuestion/addAskInItemByResDept", param);
// 项目流程节点回退下拉框
export const xmlcSelect = (param) => get(baseUrl2, "/process/zdProcessSubDetail/getAllFinishedBySubProcessCode", param);
// 项目流程节点回退提交
export const xmlcSubmit = (param) => post(baseUrl2, "/node/zdNodeBackRecord/submitApplication", param);

// 回退申请列表
export const htsqList = (param) => get(baseUrl2, "/node/zdNodeBackRecord/list", param);
// 回退申请 同意/不同意
export const htsqAgree = (param) => post(baseUrl2, "/node/zdNodeBackRecord/examApplication", param);


// 信息待补充列表
export const xxdbcList = (param) => get(baseUrl2, "/project/zdProItem/queryNoSpecified", param);

// 项目管理列表
export const xmglList = (param) => get(baseUrl2, "/project/zdProItem/list", param);
// 项目管理详情
export const xmglDetail = (param) => get(baseUrl2, "/project/zdProItem/queryDetailById", param);
// 子流程节点信息
export const xmglChilrenJdxx = (param) => get(baseUrl2, "/process/zdProcessSub/queryDetailById", param);
// 项目管理历史记录
export const xmglLsjl = (param) => get(baseUrl2, "/common/changeLogs/list", param);

// 流程选择列表
export const lcxzList = (param) => get(baseUrl2, "/process/zdProcessSubDetail/doChoiceNodeList", param);
// 流程选择提交
export const lcxzSubmit = (param) => get(baseUrl2, "/process/zdProcessSubDetail/doChoiceNode", param);

// 节点清单
export const nodeList = (param) => get(baseUrl2, "/process/zdProcessNodeFile/list", param);
// 预期预警
export const expectList = (param) => get(baseUrl2, "/process/zdProcessOverdue/list", param);
// 绩效考核
export const jxkhList = (param) => get(baseUrl2, "/examine/zdExamineScoreSummary/queryEachDeptTypeList", param);
// 登陆统计
export const dltjList = (param) => get(baseUrl2, "/sys/log/loginCount", param);
// 提请协调列表
export const homeTqxtList = (param) => get(baseUrl2, "/supervision/zdOverseeQuestion/queryProblemList", param);
